package com.demo.sso.dao;

import com.demo.sso.enity.LoginUser;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * 请添加模块注释
 *
 * @author fengjy
 * @date 2018-10-29 20:19
 */
public interface LoginUserMapper {

    /**
     *
     * @param username
     * @param password
     * @return
     */
    LoginUser loginByuser(@Param("username") String username, @Param("password") String password);
    /**
     *
     * @param username
     * @return
     */
    LoginUser chkByUserName(@Param("username") String username);
    /**
     *
     * @return
     * @param username
     */
    Set<String> chkRoleName(@Param("username") String username);
    /**
     *
     * @param username
     * @return
     * @throws Exception
     */
    Set<String> chkPermissions(String username);
}
